<?php 
	set_include_path ("/Applications/MAMP/htdocs/BullesDeMantes");
	include_once '../../administrator/connect_sql.php';
	include_once '../../BDAO/CategorieDAO.php';
?>
<html>
<head>
</head>
<body>
<h1>Test Object Metier</h1>
<?php 
	try {
		//Store
		$cat1 = new Categorie();
		$cat1->setName("cat 1");
		CategorieDAO::store($cat1);
		
		//Load
		$cat = CategorieDAO::load(1);
		echo 'load : '.$cat->getId();
		
		$cat->setName("cat 11");
		CategorieDAO::store($cat);
	} catch (Exception $e) {
    	echo 'Caught exception: ',  $e->getMessage(), "\n";
	}
?>
After
</body>
</html>